package com.itetchologyandenglish.home.mapper;

import com.itetchologyandenglish.home.enetity.Company;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CompanyMapper {
    List<Company> getCompany(@Param("companyName") String companyName, @Param("companyProject") String companyProject,@Param("beginTime")String  searchbegin,@Param("endTime")String searchend,@Param("isvip")Integer isvip);

    int deleteNormalCompany(Integer companyId);

    Company findNormaoCompanyById(Integer companyId);

    int updateNormalcompany(@Param("company") Company company);

    int upgradetovip(@Param("companyId")Integer companyId, @Param("beginTime")Date vipbegin,@Param("endTime")Date vipend);

    int insertVipCompany(@Param("company")Company company);

    int updateVipCompany(@Param("company")Company company);

//    List<Company> findVipCompanyByCompanyName(String companyName);
         Company findVipCompanyByCompanyName(String companyName);
   List<Company> findVipCompanyByUserName(String userName);

}
